import request from '@/utils/request';
import {LoginBody} from "@/types/login.ts";


export function loginUrl(data: LoginBody) {
    return request({
        url: '/auth/login',
        method: 'post',
        data
    })
}

// 退出方法
export function logout() {
    return request({
        url: '/auth/logout',
        method: 'delete'
    })
}


// 获取用户详细信息
export function getInfo() {
    return request({
        url: '/system/user/getInfo',
        method: 'get'
    })
}
